package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单列表表
 * @TableName orders_item
 */
@TableName(value ="orders_item")
@Data
public class OrdersItem implements Serializable {
    /**
     * 订单列表Id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 订单编号
     */
    @TableField(value = "orders_no")
    private Long ordersNo;

    /**
     * 商品skuId
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 商品数量
     */
    @TableField(value = "goods_num")
    private Integer goodsNum;

    /**
     * 商品价格
     */
    @TableField(value = "goods_price")
    private BigDecimal goodsPrice;

    /**
     * 商品折扣
     */
    @TableField(value = "goods_scope")
    private BigDecimal goodsScope;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标识
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}